# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libfsntfs-python
_pkgname=libfsntfs
pkgver=20240501
pkgrel=3
pkgdesc='Library and tools to access the Windows New Technology File System (NTFS).'
url='https://pypi.org/project/libfsntfs-python/#files'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('e676df4cb51882b4c0efce1b1313a565e90db5ef27a81ff56d4612a07a9c520aa72244ec15cf77488f276989ebdd2eca56339d8e771caf9f3f6155a380b7a1b5')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

